<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
      {ms:include filename=headFile.htm/} 
</head>

<body>
{ms:include filename=head.htm/} 

    <!-- 文章展示 列表 start-->
    <style>
        .article-list{background: #fff;width: 790px;float: left;}
        .article-list-title{border-left: 5px solid #A17E41;padding-left: 20px;font-size: 18px;margin-bottom: 10px;font-weight: bold;padding-top: 10px;padding-bottom: 10px;border-bottom: 1px solid #ddd;}
        .article-list .list-content{margin: 0 15px;}
        .article-list .list-content li.list-item{padding-bottom: 20px;position: relative;border-bottom: 1px solid #ddd;padding-top: 20px;}
        .article-list .img{width: 250px;height: 150px;overflow: hidden;float: left;margin-right: 20px;}
        .article-list .time{position: absolute;right: 20px;bottom: 20px;}
        .article-list h2.title{font-size: 20px;line-height: 1;padding-bottom: 10px;}
        .article-list h2.title a:hover{text-decoration: underline;}
        .article-list .desc{font-size: 16px;color: #333;max-height: 90px;display:-webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 3;overflow: hidden;text-align: justify;}
        .article-more{float: right;width: 390px;min-height: 100px;}
        .article-more-fixed{width: 390px;background: #fff;padding-top: 10px;top:0}
        .content-article{font-size: 16px;padding: 30px 0;margin: 0 30px;}
        .article-more-title{margin-left: 10px;border-left: 2px solid #A17E41;padding-left: 10px;font-size: 16px;margin-bottom: 10px;}
        .article-more-list {margin: 10px 20px;border-top: 1px solid #eee;padding-top: 10px;}
        .article-more-list li{height: 30px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}
        .article-more .border{height: 20px;background: #F3F2F2;margin-bottom: 10px;}
    </style>
    <div class="container clearfix" id="appCtrl" style="margin-top:20px;position:relative;">
        <div class="article-list" id="content">
            <div class="article-list-title">公告通知</div>
            <ul class="list-content">
                {ms:arclist size=6 ispaging=true orderby=date order=desc}
                 <li class="list-item clearfix">
                    <div class="img">
                        <a href="[field.link/]" target="_blank"><img alt="[field.title/]" src="[field.litpic/]"></a>
                    </div>
                    <h2 class="title"><a href="[field.link/]" class="cGold">[field.title/]</a></h2>
                    <div class="desc">[field.descrip/]</div>
                    <div class="time cGray">[field.date/]</div>
                </li>
                 {/ms:arclist}
                
            </ul>
		
			<div class="el-pagination is-background" style="padding: 20px 28px; text-align: right;">
				<ul class="el-pager"> 
			    	   <ul class="el-pager"> 
			    	        <li><a href="{ms:page.index/}">首页</a></li>  
							<li><a href="{ms:page.pre/}">上一页</a></li>  
							<li><a href="{ms:page.next/}">下一页</a></li>  
							<li><a href="{ms:page.last/}">末页</a></li>  
			    		</ul>
			  </div>

        </div>
        
        <div class="article-more" id="content">
            <div class="article-more-fixed">
                <div class="article-more-title">
                    新闻中心
                </div>
                <ul class="article-more-list">
                    {ms:arclist typeid=59  size=5 orderby=date order=desc}
                    		 <li><a href="[field.link/]">[field.title/]</a></li>
                    	{/ms:arclist}
                </ul>

                <div class="border"></div>

                <div class="article-more-title">
                    推荐阅读
                </div>
                <ul class="article-more-list">
                   {ms:arclist typeid=70 size=5 orderby=date order=desc}
                    		 <li><a href="[field.link/]">[field.title/]</a></li>
                    {/ms:arclist}
                </ul>
            </div>
        </div>
    </div>
    <!-- 文章展示 列表 end-->
  {ms:include filename=foot.htm/}   
    <script>
        new Vue({
          el: '#appCtrl',
          data:function(){
            return {
              pageSize: 10,
              total:50
            }
          },
          methods:{
            currentPage: function(current){
                alert('http://www.baidu.com?pageIndex='+current)
                location.href = 'http://www.baidu.com?pageIndex='+current
            }
          },

          mounted:function(){
            var fixedEl = $('.article-more-fixed'),
                moreEl = $('.article-more'),
                articleEl = $('#content'),
                $win = $(window);
            $win.on('scroll', function(){
                if($win.scrollTop()>moreEl.offset().top){
                    fixedEl.css({position:'fixed',top:0,bottom:'auto'});
                }else{
                    fixedEl.css({position:'static'});
                }

                if($win.scrollTop()+fixedEl.height()>=articleEl.height()+articleEl.offset().top){
                    fixedEl.css({
                        position:'absolute',
                        top:'auto',
                        bottom:0
                    })
                }
            })            
          }
        })
    </script>
</body>

</html>